package edu.ccut.saturn.studio.menuitem.model;

import java.util.List;

public class Menu implements IMenu {
	
	MenuItem root = new MenuItem();

	public List<MenuItem> getChildren() {
		return this.root.getChildren();
	}

	public MenuItem getRoot() {
		return root;
	}
	
	public String getLabel() {
		return "Menu";
	}
	
	public int size() {
		//由于root不算是menuItem，所有要减一
		return this.root.size() - 1;
	}
}
